﻿/**
* QSmart Andon
*
* 2012-10-23
* 
* steven.li
*
* Copyright(c) 2012 All Rights Reserved. Taiyou Tech(GUANGZHOU) Co.,Ltd.  (广州太友科技) [ sales@gztaiyou.com]. 
*
*/
using System.Collections.Generic;
using FX.CC.Andon.Entity.BasicDataManage;
using FX.CC.Andon.Service.BasicDataManage;
using FX.CC.Andon.Utility.Json;

namespace FX.CC.Andon.Business.BasicDataManage
{
    public class LevelDetailBusiness
    {
        private readonly LevelDetailService _dal = new LevelDetailService();


        public string GetLevelDetailList(LevelDetailQcEntity qcmodel)
        {
            var total = _dal.GetLevelDetailCount(qcmodel);
            var list = _dal.GetLevelDetailList(qcmodel);
            return JsonHelper.Encode(total, list);
        }

        public string GetLevelDetailListByLvInfo(LevelDetailQcEntity qcmodel)
        {
            var list = _dal.GetLevelDetailListByLvInfo(qcmodel);
            return JsonHelper.Encode(list);
        }

        public void AddLevelDetail(List<LevelDetailEntity> list)
        {
            _dal.AddLevelDetail(list);
        }

        public void Remove(List<LevelDetailEntity> list)
        {
            _dal.Remove(list);
        }
    }
}
